The Elder Scrolls Forums

TES Construction Set and Plugins >> General TES Construction Set

Pages: 1
Madd_Mugsy
Adept

Reged: 07/14/04
Posts: 220
Loc: Waiting for my XPS :D
"Cast" script function not working
      #2886865 - 08/04/04 12:46 PM

I've tried casting a whole bunch of spells from script and console: some of my own, some from other mods, some base morrowind spells. None of them work!

I'm using the syntax:
Cast "SpellNameHere" player

Also tried:
Player->Cast "SpellNameHere" player

Am I doing something wrong? Am I missing something / some setting somewhere?

Thanks!

--------------------
If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler


Post Extras: Print Post   Remind Me!   Notify Moderator  
Mode_Locrian
Diviner

Reged: 10/07/02
Posts: 2084
Loc: Bjornholm, Rykith Lowlands Region
Re: "Cast" script function not working [Re: Madd_Mugsy]
      #2886953 - 08/04/04 01:12 PM

You are using the spell ID, and not the spell name, right? The name of the spell (that gets displayed ingame) will not work.. it must be the ID.

Also, what sort of object is casting on the player? I haven't had a lot of success using calls like Player -> cast, "spell", target either....

--------------------
My Website
Bards of Vvardenfell Thread (New Info 8/15/04)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Simpleton
Acolyte

Reged: 07/02/04
Posts: 138
Loc: Earlham College, Richmond, IN
Re: "Cast" script function not working [Re: Mode_Locrian]
      #2886997 - 08/04/04 01:24 PM

cast is screwy, in the original morrowind the target had to be a specific reference, so youd have to include the 8 reference digits at the end. Also, there are some weird things about actors having to be reset for them to cast twice or something. Taken from UESP:
Quote:

Also, NPCs and creatures have to reset back to where they where when Cast was called before casting again.




--------------------
Do you have a burning desire to give me money?
Click Here to Donate

Post Extras: Print Post   Remind Me!   Notify Moderator  
Madd_Mugsy
Adept

Reged: 07/14/04
Posts: 220
Loc: Waiting for my XPS :D
Re: "Cast" script function not working [Re: Simpleton]
      #2887028 - 08/04/04 01:33 PM

Hmmm...

I am using the spell id.

I am just trying to cast a spell on the player. I don't care about NPC's (yet anyway).

Straight from Marc's Vampire Stat Cap fix:

Code:

if ( player->getSpellEffects "vampire skills by marc" == 0 )
cast "vampire skills by marc" player
endif



I tried using 'cast "vampire skills by marc" player' and it doesn't work The console recognizes the spell, but nothing gets cast. Same prob w/all other spells.

--------------------
If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler


Post Extras: Print Post   Remind Me!   Notify Moderator  
ManaUser
Master

Reged: 05/31/00
Posts: 6115
Loc: Long Beach, CA, USA
Re: "Cast" script function not working [Re: Madd_Mugsy]
      #2887224 - 08/04/04 02:26 PM

Buy who/what are you trying to make cast the spell? You can't use that command to just apply a spell to the player. It has to be cast from something else, like an NPC or an altar.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Madd_Mugsy
Adept

Reged: 07/14/04
Posts: 220
Loc: Waiting for my XPS :D
Re: "Cast" script function not working [Re: ManaUser]
      #2887241 - 08/04/04 02:31 PM

Ah, crap. You're right. I can't just global cast a spell.

Can I just plop some small item into the player's inventory to cast spells then?

Or can I make the player cast spells he doesn't know?

--------------------
If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler


Post Extras: Print Post   Remind Me!   Notify Moderator  
ManaUser
Master

Reged: 05/31/00
Posts: 6115
Loc: Long Beach, CA, USA
Re: "Cast" script function not working [Re: Madd_Mugsy]
      #2887245 - 08/04/04 02:33 PM

Nope, but close. It doesn't work from the inventory either. What you could do though, is create an object at the players feet, and script it to disable+delete itself in after casting the spell.

[Edit] Or alternatively you may want to rethink your design and use an ability or curse which can be put on the player with AddSpell.

Edited by ManaUser (08/04/04 02:35 PM)

Post Extras: Print Post   Remind Me!   Notify Moderator  
Madd_Mugsy
Adept

Reged: 07/14/04
Posts: 220
Loc: Waiting for my XPS :D
Re: "Cast" script function not working [Re: ManaUser]
      #2887285 - 08/04/04 02:41 PM

Thanks!

--------------------
If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler


Post Extras: Print Post   Remind Me!   Notify Moderator  
Madd_Mugsy
Adept

Reged: 07/14/04
Posts: 220
Loc: Waiting for my XPS :D
Re: "Cast" script function not working [Re: Madd_Mugsy]
      #2887305 - 08/04/04 02:46 PM

One more question:

How many times can I call the cast function in one frame? Do I need to stagger the calls?

--------------------
If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler


Post Extras: Print Post   Remind Me!   Notify Moderator  
Madd_Mugsy
Adept

Reged: 07/14/04
Posts: 220
Loc: Waiting for my XPS :D
Re: "Cast" script function not working [Re: Madd_Mugsy]
      #2887589 - 08/04/04 06:10 PM

Finally, one more:

Is there a range limit? It just inside the current cell?

--------------------
If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler


Post Extras: Print Post   Remind Me!   Notify Moderator  
ManaUser
Master

Reged: 05/31/00
Posts: 6115
Loc: Long Beach, CA, USA
Re: "Cast" script function not working [Re: Madd_Mugsy]
      #2887702 - 08/04/04 06:43 PM

I've never tried calling two cast functions at once on the same object. You'll just have to try it. The range for a "touch" spell is the whole cell (and nearby cells if exterior I assume) target spells actually make a bolt, so of course they need line of sight.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Madd_Mugsy
Adept

Reged: 07/14/04
Posts: 220
Loc: Waiting for my XPS :D
Re: "Cast" script function not working [Re: ManaUser]
      #2887723 - 08/04/04 06:50 PM

Excellent!

I have just successfully casted 10 spells simultaneously!

Thank you very much for your assistance!

--------------------
If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1


Extra information
1 registered and 4 anonymous users are browsing this forum.

Moderator:  Umrahel, Freddo, Pete, Hungry Donner, Attrebus, Miltiades, tegger 

Print Thread

Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 58

Rate this thread
 
Jump to

The Elder Scrolls Homepage

*
UBB.threads™ 6.3

Click for Privacy Statement © 2003 Bethesda Softworks LLC, a ZeniMax Media company. All Rights Reserved.
PRIVACY POLICY | TERMS & CONDITIONS | LEGAL INFORMATION | CONTACT US